﻿using System;

namespace Creventive.Wpf.ShellFactory.Workspace
{
    /// <summary>
    /// Event arguments for the ModelCommandExecuted event
    /// </summary>
    public class ModelCommandExecutedEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ModelCommandExecutedEventArgs"/> class.
        /// </summary>
        /// <param name="parameter">The parameter.</param>
        public ModelCommandExecutedEventArgs(object parameter)
        {
            this.Parameter = parameter;
        }

        /// <summary>
        /// Gets the command parameter.
        /// </summary>
        /// <value>The parameter.</value>
        public object Parameter { get; private set; }
    }

    /// <summary>
    /// Event arguments for the ModelCommandExecuted event
    /// </summary>
    /// <typeparam name="Targ">The type of the arg.</typeparam>
    public class ModelCommandExecutedEventArgs<Targ> : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ModelCommandExecutedEventArgs&lt;Targ&gt;"/> class.
        /// </summary>
        /// <param name="parameter">The parameter.</param>
        public ModelCommandExecutedEventArgs(Targ parameter)
        {
            this.Parameter = parameter;
        }

        /// <summary>
        /// Gets the command parameter.
        /// </summary>
        /// <value>The parameter.</value>
        public Targ Parameter { get; private set; }
    }
}